package com.cowin.sys.service.impl;

import com.cowin.sys.dao.TmBasSortRuleMapper;
import com.cowin.sys.model.TmBasSortRule;
import com.cowin.sys.service.TmBasSortRuleService;
import com.cowin.base.AbstractServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by  on 2019/10/17.
 * @author CodeGenerator
 */
@Slf4j
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class TmBasSortRuleServiceImpl extends AbstractServiceImpl<TmBasSortRule> implements TmBasSortRuleService {

    @Resource
    private TmBasSortRuleMapper tmBasSortRuleMapper;

    @Override
    public List<TmBasSortRule> findSortRuleByModule(String sortRuleType) {
        return tmBasSortRuleMapper.findSortRuleByModule(sortRuleType);
    }
}
